// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import router from './router/router.js';
import axios from 'axios';
import echarts from 'echarts';
import {adaptePX} from "@/lib/common";
//自定义组件
import './components/'
// import echarts from 'echarts';
import store from './store';
window.axios = axios;
Vue.config.productionTip = false;
axios.defaults.withCredentials = true;
import EventBus from '@/lib/EventBus';
Vue.prototype.EventBus = EventBus;//全局注册事件总线
Vue.use(ElementUI);
Vue.use(Avue);
window.adaptePX=adaptePX
window.base_file_url = process.env.NODE_ENV === 'production'?'/':'/'
// window.echarts=echarts;
// vue.use(jQuery)
/* eslint-disable no-new */
export const vm = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
